from bs4 import BeautifulSoup
import requests
import time

url = 'https://knewone.com/discover?page='

def get_page(url, data=None):
    wb_data = requests.get(url)
    soup = BeautifulSoup(wb_data.text, 'lxml')
    imgs = soup.select('a.cover-inner > img')
    titles = soup.select('section.content > h4 > a')
    links = soup.select('section.content > h4 > a')

    if data== None:
        for img, title, link in zip(imgs, titles, links):
            data = {
                '标题': title.get('title'),
                '图片': img.get('src'),
                'link': link.get('href')
            }
            print(data)

def get_more_pages(start, end):
    for one in range(start, end):
        get_page(url+str(one))
        time.sleep(2)

get_more_pages(1, 10)